from typing import List

from server.module_chat.chat.core.agent.agent import Agent
from server.settings import Settings


class AgentFactory:

    def create(id: str) -> Agent:
        agents: List[Agent] = Settings.agent_settings.AGENTS_CONFIG
        for agent in agents:
            if agent.id == id:
                return agent
        return None



